#pragma once
#include "Gobj.h"
#ifndef GIACAM_H
#define GIACAM_H
// vit ga ngang
class Giacam : public Gobj
{

protected:
	bool m_isAlive;
	bool m_isMoveLeft;
public:
	int frame = 0;
public:
	Giacam(SDL_Surface * img, Point2d pos);
	virtual ~Giacam();
	virtual void Update();
	bool isSinh()//luc de trung
	{
		if (frame >= 150)//di chuyen du 150 frame thi cho de(5s 1 qua)
		{
			frame = 0;
			return true;
		}
		return false;
	}
	Point2d getPos();
	bool isAlive()
	{
		return m_isAlive;
	}
};
#endif